.TH std::allocator::address 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::allocator::address \- std::allocator::address

.SH Synopsis
   pointer address( reference x )             \fI(until C++11)\fP
   const;
   pointer address( reference x )             \fI(since C++11)\fP
   const noexcept;                            (deprecated in C++17)
                                              (removed in C++20)
   const_pointer address(             \fB(1)\fP                           \fI(until C++11)\fP
   const_reference x ) const;
   const_pointer address(                 \fB(2)\fP                       \fI(since C++11)\fP
   const_reference x ) const                                        (deprecated in
   noexcept;                                                        C++17)
                                                                    (removed in C++20)

   Returns the actual address of x even in presence of overloaded operator&.

.SH Parameters

   x - the object to acquire address of

.SH Return value

   The actual address of x.

   Defect reports

   The following behavior-changing defect reports were applied retroactively to
   previously published C++ standards.

     DR    Applied to         Behavior as published               Correct behavior
   LWG 634            the return value is &x                 returns the actual address
   (N2436) C++98      (which is affected by overloaded       of x
                      operator&)
